package com.samshow.res.repository;

import com.samshow.res.entity.TProgramEntity;
import org.springframework.data.repository.CrudRepository;

/**
 * Created by niwb on 2017/3/24.
 */

public interface TProgramRepository extends CrudRepository<TProgramEntity, Integer> {

    /**
     * 根据ID获取节目
     * @param pId
     * @return
     */
    public TProgramEntity findById(String pId);

    /**
     * 根据名称查询节目
     * @param name
     * @return
     */
    public TProgramEntity findBycName(String name);


}
